<?php
class	AnimusRequest{
    
		protected	$_httpAccept;
		protected	$_httpCharset;
		protected	$_encoding;
		protected	$_lang;
		protected	$_connection;
		protected	$_host;
		protected	$_referrer;
		protected	$_userAgent;
		protected	$_requestURI;
                protected       $_component;
                protected       $_component_path;
                protected       $_session;


                public function __construct() {
//            $this->setHttpAccept();
//            $this->setHttpCharset();
//            $this->setHttpConnection();
//            $this->setHttpEncoding();
//            $this->setHttpHost();
//            $this->setHttpLanguage();
//            $this->setHttpReferrer();
            $this->setHttpRequestURI();
//            $this->setHttpUserAgent();
        }
        
        public	function	setHttpAccept(){
	
		$this->_httpAccept	=	$_SERVER['HTTP_ACCEPT'];
	
	}
	
	public	function	setHttpCharset(){
	
		$this->_httpCharset	=	$_SERVER['HTTP_ACCEPT_CHARSET'];
		
	}
	
	public	function	setHttpEncoding(){
	
		$this->_encoding	=	$_SERVER['HTTP_ACCEPT_ENCODING'];	
	
	}
	
	public	function	setHttpLanguage(){
	
		$this->_lang	=	$_SERVER['HTTP_ACCEPT_LANGUAGE'];
	
	}
	
	public	function	setHttpConnection(){
	
		$this->_connection	=	$_SERVER['HTTP_CONNECTION'];
	
	}
	
	public	function	setHttpHost(){
	
		$this->_host	=	$_SERVER['HTTP_HOST'];
	
	}
	
	public	function	setHttpReferrer(){
	
		$this->_referrer	=	$_SERVER['HTTP_REFERRER'];
	
	}
	
	public	function	setHttpUserAgent(){
	
		$this->_userAgent	=	$_SERVER['HTTP_USER_AGENT'];
	
	}
	
	public	function	setHttpRequestURI(){
            
          $_requestURI  =   $_SERVER['REQUEST_URI'];
            
            if	(	strcmp	(	$_requestURI,	"/application/")	==	0)
			
				$_requestURI	=	$_requestURI."index.php";
			
			
          $this->_requestURI	=	$_requestURI;
	
	}
        
        public  function        setComponent($Component){
            
            $this ->_component = $Component;
            
        }
        
        public  function        setComponentPath($path){
            
            $this->_component_path = $path;
        }
        
        public function setSession(AnimusSession $session){
        
         $this -> _session =$session;
        }
    
        public function getSession(){
        
         return $this -> _session;
        
        }
        
        
        public function         getComponentPath(){
            
            return $this->_component_path;
            
        }

        public  function        getComponent(){
            
            return  $this->_component;
            
        }
        
	public	function	getHttpAccept(){
		
		return	$this->_httpAccept;	
	
	}
	
	public	function	getHttpCharset(){
		
		return	$this->_httpCharset;	
	
	}
	
	public	function	getHttpEncoding(){
		
		return	$this->_encoding;	
	
	}
	
	public	function	getHttpLanguage(){		
		return	$this->_lang;	
	
	}
	
	public	function	getHttpConnection(){
		
		return	$this->_connection;	
	
	}
	
	public	function	getHttpHost(){
		
		return	$this->_host;	
	
	}
	
	public	function	getHttpReferrer(){
		
		return	$this->_referrer;	
	
	}
	
	public	function	getHttpUserAgent(){
		
		return	$this->_userAgent;	
	
	}
	
	public	function	getHttpRequestURI(){
		
		return	$this->_requestURI;	
	
	}

}
?>